//sceneView
function fly(opts) {

	var freedoocx = opts && opts.freedoocx;
	this._fly = freedoocx && freedoocx.fly();
   
    
};

	
	//开始飞行
	fly.startCameraAnimation = function(){
		this._fly.StartCameraAnimation();
	};
	//停止飞行
	fly.stopCameraAnimation = function(){
		this._fly.StopCameraAnimation();
	};
	//相机动画关键点
	fly.cameraAnimationKeyPoints = function(pointMap){
		this._fly.CameraAnimationKeyPoints = pointMap;
	};
	//添加模型飞行路径
	fly.addModelFlyPath = function(pahtName, flyPath){
		this._fly.AddModelFlyPath(pahtName, flyPath);
	};
	//删除模型飞行路径
	fly.removeModelFlyPath = function(pahtName, flyPath){
		this._fly.RemoveModelFlyPath(flyPath);
	};
	//开始模型飞行
	fly.startModelFly = function(pathName){
		this._fly.StartModelFly(pathName);
	};
	//停止模型飞行
	fly.stopModelFly = function(pathName){
		this._fly.StopModelFly(pathName);
	};
	//暂停模型飞行
	fly.pauseModelFly = function(pathName){
		this._fly.PauseModelFly(pathName);
	};
	//继续模型飞行
	fly.continueModelFly = function(pathName){
		this._fly.ContinueModelFly(pathName);
	};
	//飞行定位
	fly.flyTo =  function(lon, lat, heading, tilt, altitude, time){
		alert(4);
		this._fly.FlyTo(lon, lat, heading, tilt, altitude, time);
		alert(5);
	};
	//获得当前鼠标点经纬高
	fly.getCurrentCursorPos = function(bool){
		return this._fly.GetCurrentCursorPos(bool);
	};
	//暂停飞行
	fly.pauseCameraAnimation = function(){
		this._fly.PauseCameraAnimation();
	};
	//继续飞行
	fly.continueCameraAnimation = function(){
		this._fly.ContinueCameraAnimation();
	};
	
	//设置相机操作器求交模型
	fly.setCameraManipulatorIntersectModel = function(flag){
		this._fly.setCameraManipulatorIntersectModel(flag);
	};
	//开启第一人称操作器
	fly.enableFirstPersonCameraManipulator = function(lon, lat, alt, timeSpan){
		this._fly.EnableFirstPersonCameraManipulator(lon, lat, alt, timeSpan);
	};
	//关闭第一人称操作器
	fly.disableFirstPersonCameraManipulator = function(){
		this._fly.DisableFirstPersonCameraManipulator();
	};
	//设置当前飞行路径
	fly.setModelCurrentFlyPath = function(name){
		this._fly.SetModelCurrentFlyPath(name);
	};
module.exports = fly;